<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例-轮播图</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        img {
            width: 300px;
            height: 200px;
            object-fit: cover;

        }

        .div1 {
            margin: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        ul {
            position: relative;
            width: 300px;
            height: 200px;
            display: flex;
            justify-content: center;
            align-items: center;

        }

        li {
            list-style: none;
            width: inherit;
            height: inherit;
            position: absolute;
            top: 0;
            left: 0;

        }

        li:nth-child(1) {
            left: 0;
        }

        li:nth-child(2) {
            left: 100%;
        }

        li:nth-child(3) {
            left: 200%;
        }

        input[type="radio"] {
            position: relative;
            z-index: 100;
            margin-left: 5px;
            top: 90px;
        }
    </style>
</head>

<body>
    <div class="div1">
        <ul>

            <input type="radio" id="radio1" name="radio" checked>
            <input type="radio" id="radio2" name="radio">
            <input type="radio" id="radio3" name="radio">
            <li><a href="#"><img src="https://www.loliapi.com/acg/" alt=""></a></li>
            <li><a href="#"><img src="./image/横屏图片.png" alt=""></a></li>
            <li><a href="#"><img src="./image/横屏图片2.png" alt=""></a></li>
        </ul>
    </div>
</body>

</html>